package com.esms.struts.service;

import java.util.List;

import com.esms.bean.Contract;
import com.esms.bean.ContractDAO;

public class ContractService {
	
	private ContractService() {}
	public static ContractService $ = new ContractService(); 
	
	public List getAllContracts() {
		return ContractDAO.$.findAll();
		}
	
	public void createNewContract(Contract contract) {
		ContractDAO.$.insert(contract);
	}

}
